-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql
-- https://github.com/dillonkearns/elm-graphql


module Qore.Object.Maintenanceevent exposing (..)

import Graphql.Internal.Builder.Argument as Argument exposing (Argument)
import Graphql.Internal.Builder.Object as Object
import Graphql.Internal.Encode as Encode exposing (Value)
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription)
import Graphql.OptionalArgument exposing (OptionalArgument(..))
import Graphql.SelectionSet exposing (SelectionSet)
import Json.Decode as Decode
import Qore.InputObject
import Qore.Interface
import Qore.Object
import Qore.Scalar
import Qore.ScalarCodecs
import Qore.Union


eventtype : SelectionSet decodesTo Qore.Object.Eventtype -> SelectionSet decodesTo Qore.Object.Maintenanceevent
eventtype object_ =
    Object.selectionForCompositeField "eventtype" [] object_ identity


eventdatetime : SelectionSet decodesTo Qore.Object.Eventdatetime -> SelectionSet decodesTo Qore.Object.Maintenanceevent
eventdatetime object_ =
    Object.selectionForCompositeField "eventdatetime" [] object_ identity


agenttype : SelectionSet decodesTo Qore.Object.Agenttype -> SelectionSet decodesTo Qore.Object.Maintenanceevent
agenttype object_ =
    Object.selectionForCompositeField "agenttype" [] object_ identity


agent : SelectionSet decodesTo Qore.Object.Agent -> SelectionSet decodesTo Qore.Object.Maintenanceevent
agent object_ =
    Object.selectionForCompositeField "agent" [] object_ identity


eventdescription : SelectionSet decodesTo Qore.Object.Eventdescription -> SelectionSet (List decodesTo) Qore.Object.Maintenanceevent
eventdescription object_ =
    Object.selectionForCompositeField "eventdescription" [] object_ (identity >> Decode.list)


id : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
id =
    Object.selectionForField "(Maybe String)" "id" [] (Decode.string |> Decode.nullable)


altrender : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
altrender =
    Object.selectionForField "(Maybe String)" "altrender" [] (Decode.string |> Decode.nullable)


audience : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
audience =
    Object.selectionForField "(Maybe String)" "audience" [] (Decode.string |> Decode.nullable)


lang : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
lang =
    Object.selectionForField "(Maybe String)" "lang" [] (Decode.string |> Decode.nullable)


script : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
script =
    Object.selectionForField "(Maybe String)" "script" [] (Decode.string |> Decode.nullable)


encodinganalog : SelectionSet (Maybe String) Qore.Object.Maintenanceevent
encodinganalog =
    Object.selectionForField "(Maybe String)" "encodinganalog" [] (Decode.string |> Decode.nullable)
